package com.meizi.mall.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2021/1/19 17:31
 */
@Data
public class SkuEsModel {

    private Long spuId;
    private Long skuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;


    private Long saleCount;
    private Boolean hasStock;
    private Long hotScore;
    private Long brandId;
    private Long catalogId;
    private String brandName;
    private String brandImg;
    private String catalogName;
    private List<Attr> attrs;

    @Data
    public static class Attr {
        private long attrId;
        private String attrName;
        private String attrValue;
    }

}

